package cn.gl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 */
@SpringBootApplication//声明当前类似是springboot项目的启动类
@MapperScan("cn.gl.*.mapper")//扫描mapper接口的代理对象-service中注入使用
@ServletComponentScan(value = {"cn.gl.basic.listener"})
public class App {
    public static void main(String[] args){
        //使用启动类app去启动springboot
        SpringApplication.run(App.class);

    }
}
